export const getMintues = (sleep,getUp) => {
	const sleepMinutes = Number(sleep.split(":")[0] * 60) + Number(sleep.split(":")[1])
	const getUpMinutes = Number(getUp.split(":")[0] * 60) + Number(getUp.split(":")[1])
	let sumMintues = 0
	if ( sleepMinutes >= getUpMinutes) {
		//
		 sumMintues = 24 * 60 - sleepMinutes + getUpMinutes
	} else {
		sumMintues = getUpMinutes - sleepMinutes
	}
	
	let showTime = `${Math.floor(sumMintues/60)}小时${sumMintues%60 != 0 ? sumMintues%60 + '分钟':''}`
	return {sumMintues,showTime}
}